﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="EditOrganization.aspx.cs" Inherits="SD.UI.EditOrganization" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Edit Organization</title>

    <script type="text/javascript">        
        
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td colspan="2">
                    <div>
                        <h1>
                            Organization Details
                        </h1>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div style="float: right">
                        <asp:Button ID="btnInActive" runat="server" Text="In-active" OnClick="btnInActive_Click"
                            CausesValidation="False" CssClass="Button" />
                        <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" CssClass="Button" />
                        <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" CausesValidation="False"
                            CssClass="Button" />
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div>
                        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                        </asp:ToolkitScriptManager>
                        <div>
                            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" OnActiveTabChanged="TabContainer1_ActiveTabChanged">
                                <asp:TabPanel ID="tabsDetail1" runat="server" HeaderText="Detail 1">
                                    <ContentTemplate>
                                        <div>
                                            <asp:Panel ID="PanelDetails1" runat="server" Width="1180px">
                                                <div>
                                                    <table width="100%">
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbOrgName" runat="server" Text="Organization Name"></asp:Label><asp:Label
                                                                        ID="lbValidOrgName" runat="server" BorderStyle="None" ForeColor="Red" Text="*"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxOrgName" runat="server" Width="250px" MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxOrgName" ErrorMessage="Please input the organization name."> * </asp:RequiredFieldValidator></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbPreOrganization" runat="server" Text="Preferred Organization"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:CheckBox ID="chkPreOrganization" runat="server" /></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td rowspan="2">
                                                                <div>
                                                                    <asp:Label ID="lbOrgShortDescription" runat="server" Text="Organization Short Description"></asp:Label><asp:Label
                                                                        ID="lbValidOrgShortDes" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                                            </td>
                                                            <td rowspan="2">
                                                                <div>
                                                                    <asp:TextBox ID="tbxOrgShortDes" runat="server" TextMode="MultiLine" Width="250px"
                                                                        MaxLength="255"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                                                            runat="server" ControlToValidate="tbxOrgShortDes" ErrorMessage="Please input the oarganization short description."> * </asp:RequiredFieldValidator></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbExpOfInterest" runat="server" Text="Expression of Interest"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:CheckBox ID="chkExpOfInterest" runat="server" OnCheckedChanged="chkExpOfInterest_CheckedChanged"
                                                                        AutoPostBack="True" /></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbTypeOfBussiness" runat="server" Text="Type Of Bussiness"></asp:Label><asp:Label
                                                                    ID="lbValidTypeOfBussiness" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <div class="navi">
                                                                    <div>
                                                                        <asp:TextBox ID="tbxTypeOfBussiness" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                                                    <div>
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbxTypeOfBussiness"
                                                                            ErrorMessage="Please input the type of bussiness."> * </asp:RequiredFieldValidator><asp:LinkButton
                                                                                ID="linkTypeOfBussiness" runat="server" Text="Lookup" OnClientClick="ShowSearchBussinessType()"
                                                                                CausesValidation="False" OnClick="linkTypeOfBussiness_Click"></asp:LinkButton></div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbLeadContact" runat="server" Text="Lead Contact"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div class="navi">
                                                                    <div>
                                                                        <asp:TextBox ID="tbxLeadContact" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                                                    <asp:LinkButton ID="linkLookup" runat="server" Text="Lookup" OnClientClick="ShowLeadContacts()"
                                                                        CausesValidation="False" OnClick="linkLookup_Click"></asp:LinkButton></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbSICCode" runat="server" Text="SIC Code"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxSICCode" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbAddressLine1" runat="server" Text="Address Line 1"></asp:Label><asp:Label
                                                                        ID="lbValidAddLine1" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxAddressLine1" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxAddressLine1"
                                                                        ErrorMessage="Please input the address line 1."> * </asp:RequiredFieldValidator><asp:LinkButton
                                                                            ID="linkPostcode" runat="server" OnClientClick="ShowSearchAddress()" CausesValidation="False"
                                                                            Text="Lookup" OnClick="linkPostcode_Click"></asp:LinkButton></div>
                                                            </td>
                                                            <td rowspan="2">
                                                                <div>
                                                                    <asp:Label ID="lbOrgFullDescription" runat="server" Text="Organization Full Description"></asp:Label></div>
                                                            </td>
                                                            <td rowspan="2">
                                                                <div>
                                                                    <asp:TextBox ID="tbxOrgFullDescription" runat="server" Width="250px" TextMode="MultiLine"></asp:TextBox></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbAddressLine2" runat="server" Text="Address Line 2"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxAddressLine2" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox><div>
                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbAddressLine3" runat="server" Text="Address Line 3"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxAddressLine3" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbPhoneNumber" runat="server" Text="Phone Number"></asp:Label><asp:Label
                                                                        ID="lbValidPhoneNumber" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxPhoneNumber" runat="server" Width="250px" MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbxPhoneNumber"
                                                                        ErrorMessage="Please input the phone number."> * </asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                            ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxPhoneNumber"
                                                                            ErrorMessage="Invalid phone number." ValidationExpression="\d{10}">*</asp:RegularExpressionValidator></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbPostcode" runat="server" Text="Postcode"></asp:Label><asp:Label
                                                                        ID="lbValidPostcode" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div class="navi">
                                                                    <div>
                                                                        <asp:TextBox ID="tbxPostcode" runat="server" Enabled="False" Width="250px" BorderStyle="None"></asp:TextBox></div>
                                                                    <div onclick="ShowSearchAddress()">
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbxPostcode"
                                                                            ErrorMessage="Please input the postcode."> * </asp:RequiredFieldValidator></div>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbFax" runat="server" Text="Fax"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxFax" runat="server" Width="250px" MaxLength="20"></asp:TextBox><asp:RegularExpressionValidator
                                                                        ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxFax" Display="Dynamic"
                                                                        ErrorMessage="Invalid Fax format." ValidationExpression="\d{10}">*</asp:RegularExpressionValidator></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbCity" runat="server" Text="City/Town"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxCityTown" runat="server" Width="250px" Enabled="False"></asp:TextBox></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbEmail" runat="server" Text="Email"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="tbxEmail" runat="server" Width="250px" MaxLength="50"></asp:TextBox><asp:RegularExpressionValidator
                                                                    ID="RegularExpressionValidator3" runat="server" ControlToValidate="tbxEmail"
                                                                    Display="Dynamic" ErrorMessage="The email is not right format." ValidationExpression="^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|0-9]+([_][a-z|0-9]+)*)?@[a-z][a-z|0-9|]*\.([a-z][a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$">*</asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbCounty" runat="server" Text="County"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxCounty" runat="server" Width="250px" Enabled="False"></asp:TextBox></div>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbWebAddress" runat="server" Text="Web Address"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxWebAddress" runat="server" Width="250px" MaxLength="50"></asp:TextBox><asp:RegularExpressionValidator
                                                                        ID="RegularExpressionValidator4" runat="server" ControlToValidate="tbxWebAddress"
                                                                        ErrorMessage="Invalid web address" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?">*</asp:RegularExpressionValidator></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbNationCountry" runat="server" Text="Nation/Country"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxNationCountry" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbCharityNumber" runat="server" Text="Charity Number"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxCharityNumber" runat="server" Width="250px"></asp:TextBox></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbCompanyNumber" runat="server" Text="Company Number"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox ID="tbxCompanyNumber" runat="server" Width="250px" MaxLength="20"></asp:TextBox></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="3">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="tabsDetail2" runat="server" HeaderText="Detail 2" Width="1180px">
                                    <ContentTemplate>
                                        <div>
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbOrgSpecicalism" runat="server" Text="Organization Specicalism"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="pn1" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="ckbOrgSpecicalism" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbSerPerCirCapabilities" runat="server" Text="Services Peronal Circumstances Capabilities"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="pn5" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="clistSerPerCirCapabilities" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbSerDisCapabilities" runat="server" Text="Services Disablities Capabilities"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="pn2" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="listSerDisCapabilities" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbSerEthCapablities" runat="server" Text="Services Ethnicity Capablities"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="panel3" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="listSerEthCapablities" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbSerBarCapablities" runat="server" Text="Services Barrires Capablities"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="pn3" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="listSerBarCapablities" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbAccreditation" runat="server" Text="Accreditation"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="panel4" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="listAccreditation" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbSerBeneCapablities" runat="server" Text="Services Benefits Capablities"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="pn4" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                Height="100px" ScrollBars="Vertical" Width="250px">
                                                                <asp:CheckBoxList ID="listSerBeneCapablities" runat="server" Height="50px" Width="200px">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                    <td>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="tabsDetail3" runat="server" HeaderText="Detail 3" Width="1180px"
                                    Visible="false">
                                    <ContentTemplate>
                                        <div>
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbEOIProgrammes" runat="server" Text="EOI Programmes"></asp:Label></div>
                                                    </td>
                                                    <td align="left" width="80%">
                                                        <div>
                                                            <asp:Panel ID="panel5" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                ScrollBars="Vertical" Width="100%" Height="170px">
                                                                <asp:CheckBoxList ID="clistEOIProgrammes" runat="server" Height="100%" Width="100%">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div>
                                                            <asp:Label ID="lbEOIServices" runat="server" Text="EOI Services"></asp:Label></div>
                                                    </td>
                                                    <td>
                                                        <div>
                                                            <asp:Panel ID="panel6" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                                                ScrollBars="Vertical" Width="100%" Height="170px">
                                                                <asp:CheckBoxList ID="clistEOIServices" runat="server" Height="100%" Width="100%">
                                                                </asp:CheckBoxList>
                                                            </asp:Panel>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="tabsDetail4" runat="server" HeaderText="Detail 4" Width="1180px">
                                    <ContentTemplate>
                                        <div>
                                            <asp:Panel ID="PanelDetail4" runat="server" Width="100%">
                                                <div>
                                                    <asp:Panel ID="PanelPremise" runat="server" GroupingText="Premise">
                                                        <div>
                                                            <asp:GridView ID="gvPremise" runat="server" Width="1176px">
                                                            </asp:GridView>
                                                        </div>
                                                    </asp:Panel>
                                                </div>
                                                <div>
                                                    <asp:Panel ID="PanelLocatedIn" runat="server" GroupingText="Located In">
                                                        <div>
                                                            <table width="100%">
                                                                <tr>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbWard" runat="server" Text="Ward:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:TextBox ID="tbxWard" runat="server" Enabled="False" Width="250px" ReadOnly="True"></asp:TextBox></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbNHSAuthority" runat="server" Text="NHS Authority:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:TextBox ID="tbxNHSAuthority" runat="server" Enabled="False" Width="250px" ReadOnly="True"></asp:TextBox></div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbBorough" runat="server" Text="Borough:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:TextBox ID="tbxBorough" runat="server" Enabled="False" Width="250px" ReadOnly="True"></asp:TextBox></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbGovOffRegion" runat="server" Text="Gov't Office Region:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:DropDownList ID="ddlGovOffRegion" runat="server" Width="250px">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbLocalAuthority" runat="server" Text="Local Authority:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:TextBox ID="tbxLocalAuthority" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbTrustRegion" runat="server" Text="Trust Region:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:DropDownList ID="ddlTrustRegion" runat="server" Width="250px">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbUnitaryAuthority" runat="server" Text="Unitary Authority:"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:TextBox ID="tbxUnitaryAuthority" runat="server" Enabled="False" Width="250px"
                                                                                ReadOnly="True"></asp:TextBox></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:Label ID="lbTrustDistrict" runat="server" Text="Trust District"></asp:Label></div>
                                                                    </td>
                                                                    <td>
                                                                        <div>
                                                                            <asp:DropDownList ID="ddlTrustDistrict" runat="server" Width="250px">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </asp:Panel>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="tabsDetail5" runat="server" HeaderText="Detail 5" Width="1180px">
                                    <ContentTemplate>
                                        <div>
                                            <asp:Panel ID="PanelDetail5" runat="server">
                                                <div>
                                                    <table width="100%">
                                                        <tr>
                                                            <td>
                                                                <div>
                                                                    <asp:Label ID="lbDetail5" runat="server" Text="Current Lists of Supporting Materials"></asp:Label></div>
                                                            </td>
                                                            <td>
                                                                <div style="float: right">
                                                                    <asp:CheckBox ID="CheckBox1" runat="server" Text="Include In-active" AutoPostBack="True"
                                                                        OnCheckedChanged="CheckBox1_CheckedChanged" /><asp:Button ID="btnCreate" runat="server"
                                                                            Text="Create" CausesValidation="False" OnClick="btnCreate_Click" CssClass="Button" /></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <div>
                                                                    <asp:GridView ID="gvSupportingMaterial" runat="server" AutoGenerateColumns="False"
                                                                        AllowSorting="True" OnSorting="gvSupportingMaterial_Sorting" BackColor="White"
                                                                        BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%"
                                                                        CssClass="Org">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="SupportingMaterialID" Visible="False" />
                                                                            <asp:TemplateField HeaderText="URL" SortExpression="URL">
                                                                                <ItemTemplate>
                                                                                    <a href="#" onclick="onSMClick(this);">
                                                                                        <%#DataBinder.Eval(Container.DataItem,"URL") %></a>
                                                                                    <asp:HiddenField ID="hdregId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"SupportingMaterialID") %>' />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Description" SortExpression="Description">
                                                                                <ItemTemplate>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
                                                                            <asp:BoundField DataField="AddedBy" HeaderText="Added By" SortExpression="AddedBy" />
                                                                            <asp:BoundField DataField="AddedDate" HeaderText="Added Date" SortExpression="AddedDate" />
                                                                            <asp:BoundField DataField="IsActive" HeaderText="Is Active?" SortExpression="IsActive" />
                                                                        </Columns>
                                                                        <AlternatingRowStyle BackColor="#F7F7F7" />
                                                                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                                                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                                                        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" Wrap="True" />
                                                                        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                                                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                                                    </asp:GridView>
                                                                    <div style="text-align: right; background-color: #E7E7FF; height: 32px; padding-top: 16px;
                                                                        border-bottom-color: #E7E7FF; border-bottom-style: solid; border-bottom-width: 1px">
                                                                        <asp:Repeater ID="pagesRepeater" runat="server">
                                                                            <ItemTemplate>
                                                                                &#160;&#160;<asp:HyperLink ID="hyperlink" runat="server" Text='<%# Eval("Page") %>'
                                                                                    NavigateUrl='<%# Eval("Url") %>' /></ItemTemplate>
                                                                        </asp:Repeater>
                                                                        &#160;&#160;
                                                                    </div>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                                <asp:TabPanel ID="tabsBuDirectorates" runat="server" HeaderText="BU/Directorates"
                                    Width="1180px">
                                    <ContentTemplate>
                                        <div>
                                            <table width="100%">
                                                <tr>
                                                    <td colspan="3">
                                                        <div>
                                                            <h1>
                                                                Organization List
                                                            </h1>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div id="menu">
                                                            <p>
                                                                <asp:LinkButton ID="lbnAll" runat="server" CausesValidation="False" OnClick="lbnAll_Click"
                                                                    Text="All"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbn09" runat="server" CausesValidation="False" OnClick="lbn09_Click"
                                                                    Text="0-9"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbnABCDE" runat="server" CausesValidation="False" OnClick="lbnABCDE_Click"
                                                                    Text="A B C D E"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbnFGHIJ" runat="server" CausesValidation="False" OnClick="lbnFGHIJ_Click"
                                                                    Text="F G H I J"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbnKLMN" runat="server" CausesValidation="False" OnClick="lbnKLMN_Click"
                                                                    Text="K L M N"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbnOPQR" runat="server" CausesValidation="False" OnClick="lbnOPQR_Click"
                                                                    Text="O P Q R"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbnSTUV" runat="server" CausesValidation="False" OnClick="lbnSTUV_Click"
                                                                    Text="S T U V"></asp:LinkButton></p>
                                                            <p>
                                                                <asp:LinkButton ID="lbnWXYZ" runat="server" CausesValidation="False" OnClick="lbnWXYZ_Click"
                                                                    Text="W X Y Z"></asp:LinkButton></p>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div style="float: right">
                                                            <asp:Button ID="btnCreateDirectorate" runat="server" CausesValidation="False" CssClass="Button"
                                                                OnClick="btnCreateDirectory_Click" Text="Create"></asp:Button><asp:CheckBox ID="chkInActive"
                                                                    runat="server" AutoPostBack="True" OnCheckedChanged="chkInActive_CheckedChanged"
                                                                    Text="Include In-Active"></asp:CheckBox></div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3">
                                                        <div>
                                                            <asp:GridView ID="gvOrganizationList" runat="server" AllowPaging="True" AllowSorting="True"
                                                                AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None"
                                                                BorderWidth="1px" CellPadding="3" CssClass="Org" DataKeyNames="DirectorateID"
                                                                OnPageIndexChanging="gvOrganizationList_PageIndexChanging" OnSorting="gvOrganizationList_Sorting"
                                                                PageSize="4" Width="100%">
                                                                <AlternatingRowStyle BackColor="#F7F7F7"></AlternatingRowStyle>
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="BU/Directorate Name" SortExpression="Name">
                                                                        <ItemTemplate>
                                                                            <a href="#" onclick="onDirClick(this);">
                                                                                <%#DataBinder.Eval(Container.DataItem,"Name") %></a>
                                                                            <asp:HiddenField ID="hdregId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"DirectorateID") %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Line1" HeaderText="Office Address Line 1" SortExpression="Line1">
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="PostCode" HeaderText="Postcode" SortExpression="PostCode">
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="Surname" HeaderText="Contact" SortExpression="Surname">
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="IsActive" HeaderText="Is Avtice?" SortExpression="IsActive">
                                                                    </asp:BoundField>
                                                                </Columns>
                                                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C"></FooterStyle>
                                                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7"></HeaderStyle>
                                                                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right"></PagerStyle>
                                                                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C"></RowStyle>
                                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7"></SelectedRowStyle>
                                                            </asp:GridView>
                                                            <br />
                                                            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label></div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &#160;&#160;
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ContentTemplate>
                                </asp:TabPanel>
                            </asp:TabContainer>
                            <div>
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    <asp:HiddenField ID="txtContactID" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="txtAddressID" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="txtBussinessID" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hdfContactName" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfLine1" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfLine2" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hdfLine3" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfPostCode" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfTown" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hdfCounty" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfCountry" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfBussiness" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfSicCode" runat="server" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
